const commonjs = require('rollup-plugin-commonjs'),
      babel = require('rollup-plugin-babel'),
      serve = require('rollup-plugin-serve');

module.exports = {
    input: 'src/index.js',
    output: {
        file: 'dist/umd/vue.js',
        format: 'umd',
        name: 'Vue',
    },
    sourcemap: true,
    plugins: [
        commonjs(),
        babel({
            exclude: 'node_modules/**'
        }),
        serve({
            open: true,
            port: 8080,
            contentBase: '',
            openPage: '/index.html'
        })
    ]
}